<!DOCTYPE html>
<html>
<head>
    <title>留言列表</title>
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="/Public/bootstrap/css/bootstrap.css"/>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" 
            aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
        <a class="navbar-brand" href="#">留言板</a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="{:U('add')}">添加留言<span class="sr-only">(current)</span></a></li>
                <li><a href="#">留言列表</a></li>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<form>
    <input type="text" name="title" placeholder="请输入title" style="width:200px">
    <input type="submit" name="搜索" value="搜索">
</form>
</br>
<form method="POST" action="{:U{'pldelete'">
    <table class="table table-condensed">
        <tr>
            <td>选择</td>
            <td>ID</td>
            <td>标题</td>
            <td>内容</td>
            <td>操作</td>
        </tr>
        <foreach name="data" item="v">
        <tr>
            <td><input type="checkbox" name="id[]" value="{$v.id}"></td>
            <td>{$v.id}</td>
            <td>{$v.title}</td>
            <td>{$v.content}</td>
            <td>
                <a href="{:U('edit',array('id'=>$v['id']))}"><span class="glyphicon glyphicon-pencil" aria-hidden="true" ></span></a>&nbsp&nbsp
                <a href="{:U('delete',array('id'=>$v['id']))}"><span class="glyphicon glyphicon-trash" aria-hidden="true" ></span></a>
            </td>
        </tr>
    </foreach>
    </table>
    <input type="submit" name="id" value="删除所选" class="btn btn-default" >
</form>
</body>
</html>